

package com.hazelcast.jet.impl.exception;

import com.hazelcast.jet.JetException;
import com.hazelcast.spi.exception.SilentException;

import java.io.Serial;

import static com.hazelcast.jet.Util.idToString;

/**
 * Thrown in response to operations sent from the coordinator, if the
 * target doesn't know the execution.
 */
public class ExecutionNotFoundException extends JetException implements SilentException {

    @Serial
    private static final long serialVersionUID = 1L;

    public ExecutionNotFoundException() {
    }

    public ExecutionNotFoundException(long executionId) {
        this("Execution " + idToString(executionId) + " not found");
    }

    public ExecutionNotFoundException(String message) {
        super(message);
    }

    public ExecutionNotFoundException(String message, Throwable cause) {
        super(message, cause);
    }

    public ExecutionNotFoundException(Throwable cause) {
        super(cause);
    }
}
